package com.gxar.uaa.api.dto;

import java.io.Serializable;
import java.util.List;

/**
 * 分页插件
 *
 * @param <T>
 */
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 4190794668648918120L;

    private int pageSize;
    private int pageNum;
    private long totalSize;
    private List<T> content;

    public PageResult(int pageSize, int pageNum, long totalSize, List<T> content) {
        this.pageSize = pageSize;
        this.pageNum = pageNum;
        this.totalSize = totalSize;
        this.content = content;
    }

    public PageResult() {
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public long getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

}